package com.wolf.gulimall.product.feign;


import com.wolf.common.to.SkuReductionTo;
import com.wolf.common.to.SpuBoundTo;
import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用接口
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 保存spu 的积分信息
     * @param spuBounds spu积分信息
     * @return 是否成功
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBounds);

    /**
     * 保存sku的 优惠满减信息
     * @param skuReductionTo  sku的 优惠满减信息
     * @return 是否成功
     */
    @PostMapping("/coupon/skufullreduction/saveSkuReduction")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
